package com.yuyou.fn.wage.service.impl;

import com.github.wens.framework.service.impl.SuperServiceImpl;
import com.github.wens.mybatisplus.examples.Example;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.wage.entity.WageCoefficientPerformanceHistory;
import com.yuyou.fn.wage.mapper.WageCoefficientPerformanceHistoryMapper;
import com.yuyou.fn.wage.service.IWageCoefficientPerformanceHistoryService;
import org.springframework.stereotype.Service;

/**
 *
 * WageCoefficientPerformanceHistory 表数据服务层接口实现类
 *
 */
@Service
public class WageCoefficientPerformanceHistoryServiceImpl extends SuperServiceImpl<WageCoefficientPerformanceHistoryMapper, WageCoefficientPerformanceHistory,Long> implements IWageCoefficientPerformanceHistoryService {

    @Override
    public Page<WageCoefficientPerformanceHistory> findCoefficientPerformanceHistoryByEmployeeId(Long employeeId, int pageNo, int pageSize) {
        Example<WageCoefficientPerformanceHistory> example=WageCoefficientPerformanceHistory.createExample();
        Example.Criteria criteria=example.createCriteria();
        criteria.andEqualTo("employeeId",employeeId);
        example.orderBy("createTime").desc();
        return findPageByExample(example,pageNo,pageSize);
    }
}